package org.gushi.algorithm.a08;

public class Main {

    public static void main(String[] args) {

        int[] integers = new int[]{4, 3, 4, 5, 4, 1, 7, 9, 0, 6, 8};
        BucketSort bubbleSort = new BucketSort(integers);
        integers = bubbleSort.sort();

        for (int i = 0; i < integers.length; i++) {
            if(integers[i]>=1){
                int j = integers[i];
                while (j > 0) {
                    System.out.print(i);
                    System.out.print(",");
                    j--;
                }
            }
        }

    }

}
